package com.charlotte.study.gupao.template.course;

/**
 * @author junjie.ding
 * @date 2020/3/13
 */
public class JavaCourse extends AbstractCourse {

    private boolean needCheckHomework = false;

    public JavaCourse(boolean needCheckHomework) {
        this.needCheckHomework = needCheckHomework;
    }


    @Override
    protected boolean needCheckHomework() {
        return this.needCheckHomework;
    }

    @Override
    protected void checkHomework() {
        System.out.println("检查 java 作业");
    }


}
